import request from '@/utils/request'
import qs from 'qs'

export function consumedAdd (params) {
  const data = {
    ...params
  }
  return request({
    url: '/merchant/write_off/finish',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function consumedList (params) {
  const data = {
    ...params
  }
  return request({
    url: '/merchant/hweb/writeoff',
    method: 'get',
    params: data
  })
}
// 已核销

export function alreadyConsumedList (params) {
  const data = {
    ...params
  }
  return request({
    url: '/merchant/hweb/writeoffed/',
    method: 'get',
    params: data
  })
}
